<?php

namespace LowCode\Abstracts;

use LowCode\Node;
use LowCode\UI;

abstract class FromPlugin extends Node
{

    protected array $urls;

    protected string $library;

    public function toArray(): array
    {
        return UI::fromPlugin($this->urls, $this->library)->toArray();
    }
}
